#include<iostream>
#include<deque>
#include"global.hpp"

int main()
{
    //允许头插是在前面留空间
    std::deque<int> d;
    d.push_back(1);//尾插
    d.push_front(2);//头插
    d.pop_front();//头删
    d.pop_back();//尾删

    std::cout<<d[0]<<std::endl;
    std::cout<<d.at(0)<<std::endl;//越界会抛出异常





    Print(d);
    
    return 0;

}